<template>
  <view>
    {{ title }}
    <view>
      <nut-button type="primary">Primary</nut-button>
      <nut-button type="info">Info</nut-button>
      <nut-button type="default">Default</nut-button>
      <nut-button type="danger">Danger</nut-button>
      <nut-button type="warning">Warning</nut-button>
      <nut-button type="success">Success</nut-button>
    </view>
    <view>
      <van-button type="primary">主要按钮</van-button>
      <van-button type="success">成功按钮</van-button>
      <van-button type="default">默认按钮</van-button>
      <van-button type="danger">危险按钮</van-button>
      <van-button type="warning">警告按钮</van-button>
    </view>
    <view>
      <van-icon name="chat-o" />
    </view>
  </view>
</template>

<script>
import { demoGetList } from '@/api/demo'
export default {
  name: 'PageDemoDemo',
  data() {
    return {
      title: '测试',
    }
  },
  onLoad() {
    demoGetList()
      .then((res) => {
        console.log(res)
      })
      .catch((err) => {
        console.error(err)
      })
  },
  methods: {},
}
</script>

<style></style>
